package com.hdjk.view.entity;

import android.text.TextUtils;

import com.lst.projectlib.entity.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by sxy on 2017/11/17.
 */

public class GroupEntity extends BaseEntity {
    private List<BuyDisableReason> buyDisableReason;

    private String buyEnable;

    private String createdDate;

    private String day1Performance;

    private LatestRebalanceInfo latestRebalanceInfo;

    private String minBuyAmount;

    private String minRspAmount;

    private Performance performance;

    private String portfolioCode;

    private List<PortfolioFund> portfolioFund;

    private PortfolioManager portfolioManager;

    private String portfolioName;

    private String portfolioRelatedArticle;

    private String portfolioRisk;

    private String portfolioSlogan;

    private String portfolioStatus;

    private String portfolioStrategy;

    private String portfolioTag;

    private List<RspDisableReason> rspDisableReason;

    private String rspEnable;

    private String sinceLaunchReturn;

    public void setBuyDisableReason(List<BuyDisableReason> buyDisableReason) {
        this.buyDisableReason = buyDisableReason;
    }

    public List<BuyDisableReason> getBuyDisableReason() {
        return this.buyDisableReason;
    }

    public void setBuyEnable(String buyEnable) {
        this.buyEnable = buyEnable;
    }

    public String getBuyEnable() {
        return this.buyEnable;
    }

    public void setCreatedDate(String createdDate) {
        this.createdDate = createdDate;
    }

    public String getCreatedDate() {
        return this.createdDate;
    }

    public void setDay1Performance(String day1Performance) {
        this.day1Performance = day1Performance;
    }

    public String getDay1Performance() {
        return this.day1Performance;
    }

    public void setLatestRebalanceInfo(LatestRebalanceInfo latestRebalanceInfo) {
        this.latestRebalanceInfo = latestRebalanceInfo;
    }

    public LatestRebalanceInfo getLatestRebalanceInfo() {
        return this.latestRebalanceInfo;
    }

    public void setMinBuyAmount(String minBuyAmount) {
        this.minBuyAmount = minBuyAmount;
    }

    public String getMinBuyAmount() {
        return this.minBuyAmount;
    }

    public void setMinRspAmount(String minRspAmount) {
        this.minRspAmount = minRspAmount;
    }

    public String getMinRspAmount() {
        return this.minRspAmount;
    }

    public void setPerformance(Performance performance) {
        this.performance = performance;
    }

    public Performance getPerformance() {
        return this.performance;
    }

    public void setPortfolioCode(String portfolioCode) {
        this.portfolioCode = portfolioCode;
    }

    public String getPortfolioCode() {
        return this.portfolioCode;
    }

    public void setPortfolioFund(List<PortfolioFund> portfolioFund) {
        this.portfolioFund = portfolioFund;
    }

    public List<PortfolioFund> getPortfolioFund() {
        return this.portfolioFund;
    }

    public void setPortfolioManager(PortfolioManager portfolioManager) {
        this.portfolioManager = portfolioManager;
    }

    public PortfolioManager getPortfolioManager() {
        return this.portfolioManager;
    }

    public void setPortfolioName(String portfolioName) {
        this.portfolioName = portfolioName;
    }

    public String getPortfolioName() {
        return this.portfolioName;
    }

    public void setPortfolioRelatedArticle(String portfolioRelatedArticle) {
        this.portfolioRelatedArticle = portfolioRelatedArticle;
    }

    public String getPortfolioRelatedArticle() {
        return this.portfolioRelatedArticle;
    }

    public void setPortfolioRisk(String portfolioRisk) {
        this.portfolioRisk = portfolioRisk;
    }

    public String getPortfolioRisk() {
        return this.portfolioRisk;
    }
    public String getPortfolioRiskName() {
        String risk = "";
        if (!TextUtils.isEmpty(portfolioRisk)) {
            if ("1".equals(portfolioRisk))
                risk = "保守型";
            if ("2".equals(portfolioRisk))
                risk = "中度保守型";
            if ("3".equals(portfolioRisk))
                risk = "平衡型";
            if ("4".equals(portfolioRisk))
                risk = "中度进取型";
            if ("5".equals(portfolioRisk))
                risk = "进取型";
        }
        return risk;
    }

    public void setPortfolioSlogan(String portfolioSlogan) {
        this.portfolioSlogan = portfolioSlogan;
    }

    public String getPortfolioSlogan() {
        return this.portfolioSlogan;
    }

    public void setPortfolioStatus(String portfolioStatus) {
        this.portfolioStatus = portfolioStatus;
    }

    public String getPortfolioStatus() {
        return this.portfolioStatus;
    }

    public void setPortfolioStrategy(String portfolioStrategy) {
        this.portfolioStrategy = portfolioStrategy;
    }

    public String getPortfolioStrategy() {
        return this.portfolioStrategy;
    }

    public void setPortfolioTag(String portfolioTag) {
        this.portfolioTag = portfolioTag;
    }

    public String getPortfolioTag() {
        return this.portfolioTag;
    }

    public void setRspDisableReason(List<RspDisableReason> rspDisableReason) {
        this.rspDisableReason = rspDisableReason;
    }

    public List<RspDisableReason> getRspDisableReason() {
        return this.rspDisableReason;
    }

    public void setRspEnable(String rspEnable) {
        this.rspEnable = rspEnable;
    }

    public String getRspEnable() {
        return this.rspEnable;
    }

    public void setSinceLaunchReturn(String sinceLaunchReturn) {
        this.sinceLaunchReturn = sinceLaunchReturn;
    }

    public String getSinceLaunchReturn() {
        return this.sinceLaunchReturn;
    }

    public class RspDisableReason implements Serializable{
        private String code;

        private String fundCode;

        private String msg;

        public void setCode(String code) {
            this.code = code;
        }

        public String getCode() {
            return this.code;
        }

        public void setFundCode(String fundCode) {
            this.fundCode = fundCode;
        }

        public String getFundCode() {
            return this.fundCode;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getMsg() {
            return this.msg;
        }

    }

    public class PortfolioFund implements Serializable{
        private String day1Performance;

        private String earningsPer10000;

        private String fundCode;

        private String fundName;

        private String fundType;

        private String nav;

        private String navDate;

        private String proportion;

        private String riskRate;

        private String sevenDaysAnnualizedYield;

        public void setDay1Performance(String day1Performance) {
            this.day1Performance = day1Performance;
        }

        public String getDay1Performance() {
            return this.day1Performance;
        }

        public void setEarningsPer10000(String earningsPer10000) {
            this.earningsPer10000 = earningsPer10000;
        }

        public String getEarningsPer10000() {
            return this.earningsPer10000;
        }

        public void setFundCode(String fundCode) {
            this.fundCode = fundCode;
        }

        public String getFundCode() {
            return this.fundCode;
        }

        public void setFundName(String fundName) {
            this.fundName = fundName;
        }

        public String getFundName() {
            return this.fundName;
        }

        public void setFundType(String fundType) {
            this.fundType = fundType;
        }

        public String getFundType() {
            return this.fundType;
        }
        public String getFundTypeName() {
            String type = "";
            if (!TextUtils.isEmpty(fundType)) {
                if ("MM".equals(fundType))
                    type = "货币型";
                if ("BOND".equals(fundType))
                    type = "债券型";
                if ("MIXED".equals(fundType))
                    type = "混合型";
                if ("CP".equals(fundType))
                    type = "保本型";
                if ("EQ".equals(fundType))
                    type = "股票型";
                if ("AI".equals(fundType))
                    type = "另类型";
                if ("INDEX".equals(fundType))
                    type = "指数型";
                if ("ST".equals(fundType))
                    type = "分级型";
                if ("UNKNOWN".equals(fundType))
                    type = "其他";
            }
            return type;
        }
        public void setNav(String nav) {
            this.nav = nav;
        }

        public String getNav() {
            return this.nav;
        }

        public void setNavDate(String navDate) {
            this.navDate = navDate;
        }

        public String getNavDate() {
            return this.navDate;
        }

        public void setProportion(String proportion) {
            this.proportion = proportion;
        }

        public String getProportion() {
            return this.proportion;
        }

        public void setRiskRate(String riskRate) {
            this.riskRate = riskRate;
        }

        public String getRiskRate() {
            return this.riskRate;
        }

        public void setSevenDaysAnnualizedYield(String sevenDaysAnnualizedYield) {
            this.sevenDaysAnnualizedYield = sevenDaysAnnualizedYield;
        }

        public String getSevenDaysAnnualizedYield() {
            return this.sevenDaysAnnualizedYield;
        }

    }

    public class BuyDisableReason implements Serializable{
        private String code;

        private String fundCode;

        private String msg;

        public void setCode(String code) {
            this.code = code;
        }

        public String getCode() {
            return this.code;
        }

        public void setFundCode(String fundCode) {
            this.fundCode = fundCode;
        }

        public String getFundCode() {
            return this.fundCode;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getMsg() {
            return this.msg;
        }

    }

    public class PortfolioManager implements Serializable{
        private String teamDescription;

        private List<TeamMember> teamMember;

        private String teamName;

        public void setTeamDescription(String teamDescription) {
            this.teamDescription = teamDescription;
        }

        public String getTeamDescription() {
            return this.teamDescription;
        }

        public void setTeamMember(List<TeamMember> teamMember) {
            this.teamMember = teamMember;
        }

        public List<TeamMember> getTeamMember() {
            return this.teamMember;
        }

        public void setTeamName(String teamName) {
            this.teamName = teamName;
        }

        public String getTeamName() {
            return this.teamName;
        }

    }

    public class TeamMember implements Serializable{
        private String memberDescription;

        private String memberName;

        private String memberPic;

        private String teamMemberId;

        public void setMemberDescription(String memberDescription) {
            this.memberDescription = memberDescription;
        }

        public String getMemberDescription() {
            return this.memberDescription;
        }

        public void setMemberName(String memberName) {
            this.memberName = memberName;
        }

        public String getMemberName() {
            return this.memberName;
        }

        public void setMemberPic(String memberPic) {
            this.memberPic = memberPic;
        }

        public String getMemberPic() {
            return this.memberPic;
        }

        public void setTeamMemberId(String teamMemberId) {
            this.teamMemberId = teamMemberId;
        }

        public String getTeamMemberId() {
            return this.teamMemberId;
        }

    }

    public class Performance implements Serializable{
        private String navDate;

        private String performanceSinceLaunch;

        private String performanceYear1;

        private String portfolioNav;

        private String retracementSinceLaunch;

        private String retracementYear1;

        private String volatilitySinceLaunch;

        private String volatilityYear1;

        public void setNavDate(String navDate) {
            this.navDate = navDate;
        }

        public String getNavDate() {
            return this.navDate;
        }

        public void setPerformanceSinceLaunch(String performanceSinceLaunch) {
            this.performanceSinceLaunch = performanceSinceLaunch;
        }

        public String getPerformanceSinceLaunch() {
            return this.performanceSinceLaunch;
        }

        public void setPerformanceYear1(String performanceYear1) {
            this.performanceYear1 = performanceYear1;
        }

        public String getPerformanceYear1() {
            return this.performanceYear1;
        }

        public void setPortfolioNav(String portfolioNav) {
            this.portfolioNav = portfolioNav;
        }

        public String getPortfolioNav() {
            return this.portfolioNav;
        }

        public void setRetracementSinceLaunch(String retracementSinceLaunch) {
            this.retracementSinceLaunch = retracementSinceLaunch;
        }

        public String getRetracementSinceLaunch() {
            return this.retracementSinceLaunch;
        }

        public void setRetracementYear1(String retracementYear1) {
            this.retracementYear1 = retracementYear1;
        }

        public String getRetracementYear1() {
            return this.retracementYear1;
        }

        public void setVolatilitySinceLaunch(String volatilitySinceLaunch) {
            this.volatilitySinceLaunch = volatilitySinceLaunch;
        }

        public String getVolatilitySinceLaunch() {
            return this.volatilitySinceLaunch;
        }

        public void setVolatilityYear1(String volatilityYear1) {
            this.volatilityYear1 = volatilityYear1;
        }

        public String getVolatilityYear1() {
            return this.volatilityYear1;
        }

    }

    public class LatestRebalanceInfo implements Serializable{
        private List<Details> details;

        private String rebalanceDate;

        private String rebalanceStrategy;

        private String reblanceId;

        public void setDetails(List<Details> details) {
            this.details = details;
        }

        public List<Details> getDetails() {
            return this.details;
        }

        public void setRebalanceDate(String rebalanceDate) {
            this.rebalanceDate = rebalanceDate;
        }

        public String getRebalanceDate() {
            return this.rebalanceDate;
        }

        public void setRebalanceStrategy(String rebalanceStrategy) {
            this.rebalanceStrategy = rebalanceStrategy;
        }

        public String getRebalanceStrategy() {
            return this.rebalanceStrategy;
        }

        public void setReblanceId(String reblanceId) {
            this.reblanceId = reblanceId;
        }

        public String getReblanceId() {
            return this.reblanceId;
        }

    }

    public class Details implements Serializable{
        private String fundCode;

        private String fundName;

        private String fundType;

        private String postProportion;

        private String preProportion;

        public void setFundCode(String fundCode) {
            this.fundCode = fundCode;
        }

        public String getFundCode() {
            return this.fundCode;
        }

        public void setFundName(String fundName) {
            this.fundName = fundName;
        }

        public String getFundName() {
            return this.fundName;
        }

        public void setFundType(String fundType) {
            this.fundType = fundType;
        }

        public String getFundType() {
            return this.fundType;
        }

        public void setPostProportion(String postProportion) {
            this.postProportion = postProportion;
        }

        public String getPostProportion() {
            return this.postProportion;
        }

        public void setPreProportion(String preProportion) {
            this.preProportion = preProportion;
        }

        public String getPreProportion() {
            return this.preProportion;
        }

    }
}
